package com.woniu.order.service;

import com.woniu.order.infra.model.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.order.service.dto.OrderDto;
import com.woniu.order.service.param.OrderCreateServiceParam;
import com.woniu.order.service.param.SearchOrderServiceParam;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
public interface OrderService extends IService<Order> {

    List<OrderDto> searchOrder(SearchOrderServiceParam searchOrderServiceParam);

    OrderDto createOrder(OrderCreateServiceParam orderCreateServiceParam) throws Exception;

    String aliPay(Integer orderId) throws Exception;

    void setPayOk(Integer orderId);

}
